﻿using System;
using System.ComponentModel;

using UnityConfiguration.Converters;

namespace UnityConfiguration
{

    public class TypeAlias
    {
        private string _Alias;
        private Type _Type;

        public string Alias {
            get { return _Alias; }
            set { _Alias = value; }
        }
#if SILVERLIGHT
        [TypeConverter(typeof(AssemblyQualifiedTypeNameConverter))]
        [DefaultValue(null)]
#endif
        public Type Type {
            get { return _Type; }
            set { _Type = value; }
        }

        public override string ToString() {
            return string.Format("{0},{1}", this.Alias, this.Type);
        }
    }
}
